package com.huangkailong.designpattern.facade;

/**
 * 积分支付服务.
 *
 * @author huangkl
 * @since 1.0.0
 */
public class PaymentService {

    /**
     * 扣除积分兑换礼物.
     *
     * @param giftInfo {@link GiftInfo}
     * @return ture 扣除成功，false 扣除失败
     */
    public boolean pay(GiftInfo giftInfo) {
        System.out.println("成功扣除兑换" + giftInfo.getName() + "礼物所需的积分!");
        return true;
    }
}
